package com.hzb.shop.user.service;

import com.hzb.shop.user.entiy.ShopUserAddres;
import com.hzb.shop.user.mapper.ShopUserAddresMapper;
import com.hzb.shop.user.rpc.ShopUserAddresService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2017/9/11.
 */
@Service("shopUserAddresService")
public class ShopUserAddresServiceImpl implements ShopUserAddresService {

    @Autowired
    private ShopUserAddresMapper shopUserAddresMapper;

    public int add(ShopUserAddres shopUserAddres) {
        return shopUserAddresMapper.add(shopUserAddres);
    }

    public int update(ShopUserAddres shopUserAddres) {
        return shopUserAddresMapper.update(shopUserAddres);
    }

    public ShopUserAddres get(ShopUserAddres shopUserAddres) {
        return shopUserAddresMapper.get(shopUserAddres);
    }

    public List<ShopUserAddres> findList(ShopUserAddres shopUserAddres) {
        return shopUserAddresMapper.findList(shopUserAddres);
    }

    public int delete(ShopUserAddres shopUserAddres) {
        return shopUserAddresMapper.delete(shopUserAddres);
    }
}
